//
//  ViewController.m
//  Gravity
//
//  Created by GYUNGJIN LEE on 6/9/12.
//  Copyright (c) 2012 i don't belong nowhere. All rights reserved.
//

#import "ViewController.h"
#import "MenuViewController.h"
//#import "GameStartViewController.h"
@interface ViewController ()
@end

@implementation ViewController
@synthesize menu;
//@synthesize gameStart;
- (void)viewDidLoad {
    self.menu=[[MenuViewController alloc] initWithNibName:@"MenuViewController" bundle:nil];
    //[self.view insertSubview:self.menu.view atIndex:0];
    [menu setCurrentView:self];
    [self.view addSubview:self.menu.view];
    [super viewDidLoad];   
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    //    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
    //        return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
    //    } else {
    //        return YES;
    //    }
    return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}

//-(IBAction)startGame{
//    
//}

@end
